<h2>Personal Home Page </h2>
<?php
$id_usergroup = $this->session->userdata('id_usergroup'); 
$flashmessage = $this->session->flashdata('message');
	echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; ?>
<div id="user_logged" >
	<table width="300" border="1" bordercolor="#000000" id="tabel_logged">
	  <tr>
		<th width="100" scope="row">Name User</th>
		<td width="200">
		<?php echo $this->session->userdata('user_name');  echo " ".anchor('user/change_pass/'.$this->session->userdata('id_user'),'Rubah Password',array('class' => 'update'));  ?> </a></td>
	  </tr>
	  <tr>
		<th scope="row">Grup User</th>
		<td><?php echo $this->session->userdata('usergroup'); ?></td>
	  </tr>
	  <tr>
		<th scope="row">Cabang</th>
		<td><?php echo $this->session->userdata('cabang');  
		if($id_usergroup == 1 || $id_usergroup == 6){
			echo " ".anchor('cabang/update/'.$this->session->userdata('id_cabang'),'Edit Info',array('class' => 'update')); 
		}?></td>
	  </tr>
	  <tr>
		<th scope="row">Login Date</th>
		<td><?php echo $this->session->userdata('login_date');  ?></td>
	  </tr>
	  <tr>
		<th scope="row">Login Time</th>
		<td><?php echo $this->session->userdata('login_time');  ?></td>
	  </tr>
	</table>
</div>